package com.springboot.others.service;

import com.springboot.others.entity.Customer;
import com.springboot.others.entity.dto.PageCustomerDTO;
import com.springboot.others.entity.vo.ResultPage;

import java.util.List;

public interface CustomerService {
    Customer findById(Integer id);
    List<Customer> findAll();
    void save(Customer customer);
    void deleteById(Integer id);
    void update(Customer customer);

    ResultPage getPageByCondition(PageCustomerDTO pageCustomerDTO);
}
